home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / os.434 < prev    next >
Text File  |  1992-02-06  |  899b  |  20 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;}
  2. \paperw13040
  3. \paperh10200
  4. \margl120
  5. \margr120
  6. \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\f0\b0\i0\ul0\fs28 Accessing raw disks\
  7. \
  8. Q: How can I read and write the raw disk (rsdDP and rodDP)?\
  9. \
  10. A: In order to read the raw disk, you must either be root, or you must be in the 'operator' group.  To write the raw disk, you must be root.  Alternatively, your program could run SUID root to write, SGID operator to read.\
  11. \
  12. There are additional restrictions when accessing the raw device.  The buffer you use must be aligned on a 4-byte boundary.  You can read an arbitrary number of bytes.  If you write less than an entire sector (as specified in disktab; currently, this is ALWAYS 1024 bytes), the driver will pad your write with zeros until it is an integral number of sectors.\
  13. \
  14. QA434\
  15. \
  16. Valid for 1.0 \
  17. Valid for 2.0 \
  18. \
  19.  
  20.